package com.song.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "t_netClass")
public class NetClass implements Serializable {
   @TableId(value = "netClass_id",type = IdType.AUTO)
   private Integer netClassId;
   @TableField(value = "netClass_name")
   private String netClassName;
   @TableField(value = "teacher_name")
   private String teacherName;
   @TableField(value = "establish_date")
   @JsonFormat(pattern="yyyy-MM-dd")
   private Date establishDate;
}
